using Admin.NET.Core;
using SqlSugar;

namespace Admin.NET.Application.Entity.Business;

/// <summary>
/// 房间余额去向记录
/// </summary>
[SugarTable("RoomBalanceRecord", "房间余额去向记录表")]
[Tenant("questdb")]
public class RoomBalanceRecord : EntityTenant
{
	/// <summary>
	/// 房间id
	/// </summary>
	public long RoomId { get; set; }

	/// <summary>
	/// 记录id，充值、退款记录id，结算记录id，自定义账单id
	/// </summary>
	public long RecordId { get; set; }

	/// <summary>
	/// 0,充值退款记录，1水电结算记录，2自定义账单记录
	/// </summary>
	public int Type { get; set; }

	/// <summary>
	/// 金额，+充值，-扣除
	/// </summary>
	[SugarColumn(Length = 28, DecimalDigits = 10)]
	public decimal Amount { get; set; }

	/// <summary>
	/// 备注
	/// </summary>
	public string? Remark { get; set; }
}
